﻿using XsqTech.SmartOA.Domain.Table;
using XsqTech.SmartOA.Dtos.DTO.Dict;

namespace XsqTech.SmartOA.IService
{
    public interface IDictDetailsService
    {
        /// <summary>
        /// 数据字典从表显示分页查询
        /// </summary>
        /// <param name="name"></param>
        /// <param name="size"></param>
        /// <param name="dang"></param>
        /// <returns></returns>
        public List<DictDetails> DictDetailsShow(string name, int id = 0, int size = 3, int dang = 1);
        /// <summary>
        /// 数据字典从表添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int DictDetailsAdd(DictDetails model);
        /// <summary>
        /// 数据字典从表修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int DictDetailsUpdate(DictDetailsUpdateDTO model);
        /// <summary>
        /// 数据字典从表删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DetailsDelete(int id);
        /// <summary>
        /// 根据主键获取
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public DictDetails DictRefill(int id);
    }
}